<template>
	<view class="search-box">
		<view class="search-inp" @tap='navSearch'>
			<uni-icons type="search" size="17"></uni-icons>
			<text>搜索</text>
		</view>

	</view>
</template>
<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			navSearch() {
				this.$emit('go')
			}
		}
	}

</script>
<style lang='scss' scoped>
	.search-box {
		background-color: red;
		height: 50px;
		display: flex;
		padding: 0 10px;

		.search-inp {
			margin: auto;
			height: 36px;
			background-color: #fff;
			border-radius: 18px;
			display: flex;
			width: 100%;
			justify-content: center;
			align-items: center;

			uni-icons {
				width: 20px;
			}
		}
	}

</style>

